package lab.anoper.fsm.fsm;

import lombok.ToString;

/**
 * @author Yan Jiahong
 * Created at 2020/9/21
 */
@ToString
public enum PaymentState {
    NOT_PAID(0, "未支付"),
    PAYING(1, "支付中"),
    PAY_SUCCESS(2, "支付成功"),
    PAY_FAILED(3, "支付失败");

    private int code;
    private String desc;

    PaymentState(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
